#include <iostream> 
#include <memory>
#include <string>


#include "TcpClient.hpp"

using namespace std;

void Usage(const char* process)
{
    cout<<"Usage: "<<process<<" need server_ip  _server_port"<<endl;
}


int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        Usage(argv[0]);
        return 1;
    }
    string server_ip=argv[1];
    uint16_t server_port=stoi(argv[2]);
    unique_ptr<Client> cli=make_unique<Client>(server_ip,server_port);
    cli->Excute();
}
